package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.MineExamQuestion;

/**
 * 试卷题目关联Mapper接口
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
public interface MineExamQuestionMapper 
{
    /**
     * 查询试卷题目关联
     * 
     * @param examId 试卷题目关联主键
     * @return 试卷题目关联
     */
    public MineExamQuestion selectMineExamQuestionByExamId(Long examId);

    /**
     * 查询试卷题目关联列表
     * 
     * @param mineExamQuestion 试卷题目关联
     * @return 试卷题目关联集合
     */
    public List<MineExamQuestion> selectMineExamQuestionList(MineExamQuestion mineExamQuestion);

    /**
     * 新增试卷题目关联
     * 
     * @param mineExamQuestion 试卷题目关联
     * @return 结果
     */
    public int insertMineExamQuestion(MineExamQuestion mineExamQuestion);

    /**
     * 修改试卷题目关联
     * 
     * @param mineExamQuestion 试卷题目关联
     * @return 结果
     */
    public int updateMineExamQuestion(MineExamQuestion mineExamQuestion);

    /**
     * 删除试卷题目关联
     * 
     * @param examId 试卷题目关联主键
     * @return 结果
     */
    public int deleteMineExamQuestionByExamId(Long examId);

    /**
     * 批量删除试卷题目关联
     * 
     * @param examIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMineExamQuestionByExamIds(Long[] examIds);

    /**
     * 批量新增试卷题目关联
     *
     * @param list 试卷题目关联集合
     * @return 结果
     */
    public int insertBatchMineExamQuestion(List<MineExamQuestion> list);

    public List<Long> selectMineQuestionIdsByExamId(Long examId);
}
